package com.igeek.base.ch0711.Dome1;

/**
 * @Description TODO
 * @Author chenmin
 * @Date 2024/7/11 15:08
 */
public class Grade {
    private float java;
    private float c;
    private float sql;

    public Grade() {
    }

    public Grade(float java, float c, float sql) {
        this.java = java;
        this.c = c;
        this.sql = sql;
    }

    public float getJava() {
        return java;
    }

    public void setJava(float java) {
        this.java = java;
    }

    public float getC() {
        return c;
    }

    public void setC(float c) {
        this.c = c;
    }

    public float getSql() {
        return sql;
    }

    public void setSql(float sql) {
        this.sql = sql;
    }
    public double avg(){
        return (getJava()+getC()+getSql())/3;

    }
    public double sum(){
        return getJava()+getC()+getSql();
    }
}
